<template>
  <view class="bill">
    <view class="section">
      <view class="list">
        <view class="item">
          <view class="item-title">商品总额: </view>
          <view class="item-content">￥{{ bill.total }}</view>
        </view>
        <view class="item">
          <view class="item-title">运费: </view>
          <view class="item-content">￥{{ bill.postFee }}</view>
        </view>
      </view>
      <view class="total">
        <view class="total-title">实付金额</view>
        <view class="total-content">￥{{ bill.actualPay }}</view>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
import {BillCls} from "@/pagesOrder/types/ordercls";

defineProps({
  bill: BillCls
})
</script>
<style lang="scss">
.bill {
  background-color: #fff;
  .section {
    .list {
      .item {
        .item-content {
          font-size: 14px;
          color: $uni-color-error;
        }
      }
    }
    .total {
      display: flex;
      justify-content: flex-start;
      padding: 10px 20px;
      .total-title {
        font-size: 12px;
        color: $uni-text-color-grey;
      }
      .total-content {
        margin-left: 10px;
        font-size: 14px;
        color: $uni-color-error;
      }
    }
  }
}
.section {
  margin: 10px 0;
  .list {
    .item {
      padding: 10px 20px;
      display: flex;
      justify-content: flex-start;
      .item-title {
        font-size: 12px;
        color: $uni-text-color-grey;
      }
      .item-content {
        margin-left: 10px;
        font-size: 13px;
      }
    }
  }
}
.item-title, .total-title {
  width: 20%;
}
</style>